package com.ruoyi.domain;



import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 人员#ttz_person
 * @TableName ttz_person
 */
public class Person extends BaseEntity implements Serializable {
    /**
     * 人员主键#primary
     */
    private Integer persId;

    /**
     * 公司#foreign
     */
    private Integer coId;

    /**
     * 人员姓名
     */
    private String persName;

    /**
     * 人员性别#state#0=女,1=男
     */
    private Integer persSex;

    /**
     * 入职时间
     */
    private Date persInDate;

    /**
     * 薪水
     */
    private Integer persSalary;

    /**
     * 备注  最多500字
     */
    private String persRemark;

    private String coName;

    private List<Integer> coIds;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "Person{" +
                "persId=" + persId +
                ", coId=" + coId +
                ", persName='" + persName + '\'' +
                ", persSex=" + persSex +
                ", persInDate=" + persInDate +
                ", persSalary=" + persSalary +
                ", persRemark='" + persRemark + '\'' +
                ", coName='" + coName + '\'' +
                ", coIds=" + coIds +

                '}';
    }

    public List<Integer> getCoIds() {
        return coIds;
    }

    public void setCoIds(List<Integer> coIds) {
        this.coIds = coIds;
    }

    public String getCoName() {
        return coName;
    }

    public void setCoName(String coName) {
        this.coName = coName;
    }

    /**
     * 人员主键#primary
     */
    public Integer getPersId() {
        return persId;
    }

    /**
     * 人员主键#primary
     */
    public void setPersId(Integer persId) {
        this.persId = persId;
    }

    /**
     * 公司#foreign
     */
    public Integer getCoId() {
        return coId;
    }

    /**
     * 公司#foreign
     */
    public void setCoId(Integer coId) {
        this.coId = coId;
    }

    /**
     * 人员姓名
     */
    public String getPersName() {
        return persName;
    }

    /**
     * 人员姓名
     */
    public void setPersName(String persName) {
        this.persName = persName;
    }

    /**
     * 人员性别#state#0=女,1=男
     */
    public Integer getPersSex() {
        return persSex;
    }

    /**
     * 人员性别#state#0=女,1=男
     */
    public void setPersSex(Integer persSex) {
        this.persSex = persSex;
    }

    /**
     * 入职时间
     */
    public Date getPersInDate() {
        return persInDate;
    }

    /**
     * 入职时间
     */
    public void setPersInDate(Date persInDate) {
        this.persInDate = persInDate;
    }

    /**
     * 薪水
     */
    public Integer getPersSalary() {
        return persSalary;
    }

    /**
     * 薪水
     */
    public void setPersSalary(Integer persSalary) {
        this.persSalary = persSalary;
    }

    /**
     * 备注  最多500字
     */
    public String getPersRemark() {
        return persRemark;
    }

    /**
     * 备注  最多500字
     */
    public void setPersRemark(String persRemark) {
        this.persRemark = persRemark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Person other = (Person) that;
        return (this.getPersId() == null ? other.getPersId() == null : this.getPersId().equals(other.getPersId()))
            && (this.getCoId() == null ? other.getCoId() == null : this.getCoId().equals(other.getCoId()))
            && (this.getPersName() == null ? other.getPersName() == null : this.getPersName().equals(other.getPersName()))
            && (this.getPersSex() == null ? other.getPersSex() == null : this.getPersSex().equals(other.getPersSex()))
            && (this.getPersInDate() == null ? other.getPersInDate() == null : this.getPersInDate().equals(other.getPersInDate()))
            && (this.getPersSalary() == null ? other.getPersSalary() == null : this.getPersSalary().equals(other.getPersSalary()))
            && (this.getPersRemark() == null ? other.getPersRemark() == null : this.getPersRemark().equals(other.getPersRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPersId() == null) ? 0 : getPersId().hashCode());
        result = prime * result + ((getCoId() == null) ? 0 : getCoId().hashCode());
        result = prime * result + ((getPersName() == null) ? 0 : getPersName().hashCode());
        result = prime * result + ((getPersSex() == null) ? 0 : getPersSex().hashCode());
        result = prime * result + ((getPersInDate() == null) ? 0 : getPersInDate().hashCode());
        result = prime * result + ((getPersSalary() == null) ? 0 : getPersSalary().hashCode());
        result = prime * result + ((getPersRemark() == null) ? 0 : getPersRemark().hashCode());
        return result;
    }

}